import { createRouter, createWebHistory } from 'vue-router'
import index from '@/views/Index.vue'
import Root from '@/views/Root.vue'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: Root,
      children:[
        //首页
        {
          path:"/",
          name: 'Home',
          component: () => import("@/views/Home.vue"),
        },
        //系统功能
        {
          path:"User",
          name: 'User',
          component: () => import("@/views/system/User.vue"),
        },
        {
          path:"Courseware",
          name: 'Courseware',
          component: () => import("@/views/system/Courseware.vue"),
        },
        {
          path:"TeacherNum",
          name: 'TeacherNum',
          component: () => import("@/views/system/screen/TeacherNum.vue"),
        },
        {
          path:"StudentNum",
          name: 'StudentNum',
          component: () => import("@/views/system/screen/StudentNum.vue"),
        },
        {
          path:"Efficiency",
          name: 'Efficiency',
          component: () => import("@/views/system/screen/Efficiency.vue"),
        },
        {
          path:"StudyResult",
          name: 'StudyResult',
          component: () => import("@/views/system/screen/StudyResult.vue"),
        },
        //教师管理
        {
          path:"Preparation",
          name: 'Preparation',
          component: () => import("@/views/teacher/Preparation.vue"),
        },
        {
          path:"Topic",
          name: 'Topic',
          component: () => import("@/views/teacher/Topic.vue"),
        },
        {
          path:"Analysis",
          name: 'Analysis',
          component: () => import("@/views/teacher/Analysis.vue"),
        },
        //学生管理
        {
          path:"Study",
          name: 'Study',
          component: () => import("@/views/student/Study.vue"),
        },
        {
          path:"Evaluation",
          name: 'Evaluation',
          component: () => import("@/views/student/Evaluation.vue"),
        },
        //资源管理
        {
          path:"KnowledgeImp",
          name: 'KnowledgeImp',
          component: () => import("@/views/resources/KnowledgeImp.vue"),
        },

      ]
    }


  ],
})

export default router
